import { grpcServerOptions } from '@app/grpc/utils/grpc-server/grpc-server.options';
import { Global, Module } from '@nestjs/common';
import { ClientsModule, Transport } from '@nestjs/microservices';

@Global()
@Module({
  imports: [
    ClientsModule.register([
      {
        name: 'USER_PACKAGE',
        transport: Transport.GRPC,
        options: grpcServerOptions.options,
      },
    ]),
  ],
  exports: [ClientsModule],
})
export class grpcClientsModule {}
